%main#music-index
  = render 'layouts/navbar'
  .ui.grid
    .row
      .four.wide.column
        - if current_user
          = link_to  "javascript:void(0)", class: 'ui left icon inverted green button create-button',:id=>'new_music_button' do
            分享新音乐
      .ui.modal.music-form
        %i.close.red.icon
        .content
          = render 'musics/new_song_form'
      .eight.wide.column
        .centered.column#music-index-list
          .ui.list
            - @musics.each_with_index do |music|
              .item{style:'padding:2rem'}
                = music.xiami_html.html_safe